Skip to content

Implements pivot snapping#3675

Draft
jsjgdh wants to merge 1 commit intoGraphiteEditor:masterfrom
jsjgdh:custom-piviot-snapping
Draft

Implements pivot snapping#3675
jsjgdh wants to merge 1 commit intoGraphiteEditor:masterfrom
jsjgdh:custom-piviot-snapping

Conversation

@jsjgdh
Copy link
Contributor

@jsjgdh jsjgdh commented Jan 23, 2026

@jsjgdh jsjgdh force-pushed the custom-piviot-snapping branch 2 times, most recently from c899c13 to 1fb8e5c Compare January 24, 2026 09:30
@jsjgdh jsjgdh force-pushed the custom-piviot-snapping branch from 1fb8e5c to fca3b23 Compare January 26, 2026 07:38
@jsjgdh jsjgdh marked this pull request as ready for review January 26, 2026 09:49
let mut best_distance = f64::INFINITY;
let mut best_snap_point: Option<DVec2> = None;
let mut best_quad: Option<Quad> = None;
let mut best_point_type: u8 = 0; // 0=corner, 1=midpoint, 2=center
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BoundingBoxSnapTarget::{CornerPoint, EdgeMidpoint, CenterPoint}

can be used here, or atleast an enum

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Marking as draft until this is resolved by @jsjgdh.

@Keavon Keavon marked this pull request as draft February 14, 2026 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Autosnapping to selection transforms for manual Custom Pivot placement

3 participants